public class Words
{
   /**
      Returns the nth short word (length <= 3) in an array.
      @param words an array of strings
      @param n an integer > 0
      @return the nth short word in words, or the empty string if there is
      no such word
   */
   public String nthShortWord(String[] words, int n)
   {
      // your work here
      int ans = 0;
      String L = "";
      for(int i=0;i<words.length;i++){
         if(words[i].length() <= 3){
            ans++;
         }
         if(ans == n){
            L = words[i];
            break;
         }
      }
      return L;


   }
}